package code.lucamarrocco.struts2.rest.sample;

public class Person implements IPerson {
	private Long id;

	private String name;

	public Person() {}

	public Person(String name) {
		this.name = name;
	}

	public Long getId() {
		return id;
	}

	public String getName() {
		return name;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Override
	public String toString() {
		StringBuilder stringBuilder = new StringBuilder();
		stringBuilder.append("name = ").append(getName()).append(", ");
		return stringBuilder.toString().replaceAll(", $", "");
	}

}
